Integrand size = 23, antiderivative size = 201 \[ \int x^3 (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \, dx=\frac {54}{935} x \sqrt {1+x} \sqrt {1-x+x^2}+\frac {18}{187} x^4 \sqrt {1+x} \sqrt {1-x+x^2}+\frac {2}{17} x^4 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )-\frac {36\ 3^{3/4} \sqrt {2+\sqrt {3}} (1+x)^{3/2} \sqrt {1-x+x^2} \sqrt {\frac {1-x+x^2}{\left (1+\sqrt {3}+x\right )^2}} \operatorname {EllipticF}\left (\arcsin \left (\frac {1-\sqrt {3}+x}{1+\sqrt {3}+x}\right ),-7-4 \sqrt {3}\right )}{935 \sqrt {\frac {1+x}{\left (1+\sqrt {3}+x\right )^2}} \left (1+x^3\right )} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 201, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {929, 285, 327, 224} \[ \int x^3 (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \, dx=-\frac {36\ 3^{3/4} \sqrt {2+\sqrt {3}} (x+1)^{3/2} \sqrt {x^2-x+1} \sqrt {\frac {x^2-x+1}{\left (x+\sqrt {3}+1\right )^2}} \operatorname {EllipticF}\left (\arcsin \left (\frac {x-\sqrt {3}+1}{x+\sqrt {3}+1}\right ),-7-4 \sqrt {3}\right )}{935 \sqrt {\frac {x+1}{\left (x+\sqrt {3}+1\right )^2}} \left (x^3+1\right )}+\frac {54}{935} \sqrt {x+1} \sqrt {x^2-x+1} x+\frac {18}{187} \sqrt {x+1} \sqrt {x^2-x+1} x^4+\frac {2}{17} \sqrt {x+1} \sqrt {x^2-x+1} \left (x^3+1\right ) x^4 \]
[In]
[Out]
Rule 224
Rule 285
Rule 327
Rule 929
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt {1+x} \sqrt {1-x+x^2}\right ) \int x^3 \left (1+x^3\right )^{3/2} \, dx}{\sqrt {1+x^3}} \\ & = \frac {2}{17} x^4 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )+\frac {\left (9 \sqrt {1+x} \sqrt {1-x+x^2}\right ) \int x^3 \sqrt {1+x^3} \, dx}{17 \sqrt {1+x^3}} \\ & = \frac {18}{187} x^4 \sqrt {1+x} \sqrt {1-x+x^2}+\frac {2}{17} x^4 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )+\frac {\left (27 \sqrt {1+x} \sqrt {1-x+x^2}\right ) \int \frac {x^3}{\sqrt {1+x^3}} \, dx}{187 \sqrt {1+x^3}} \\ & = \frac {54}{935} x \sqrt {1+x} \sqrt {1-x+x^2}+\frac {18}{187} x^4 \sqrt {1+x} \sqrt {1-x+x^2}+\frac {2}{17} x^4 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )-\frac {\left (54 \sqrt {1+x} \sqrt {1-x+x^2}\right ) \int \frac {1}{\sqrt {1+x^3}} \, dx}{935 \sqrt {1+x^3}} \\ & = \frac {54}{935} x \sqrt {1+x} \sqrt {1-x+x^2}+\frac {18}{187} x^4 \sqrt {1+x} \sqrt {1-x+x^2}+\frac {2}{17} x^4 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )-\frac {36\ 3^{3/4} \sqrt {2+\sqrt {3}} (1+x)^{3/2} \sqrt {1-x+x^2} \sqrt {\frac {1-x+x^2}{\left (1+\sqrt {3}+x\right )^2}} F\left (\sin ^{-1}\left (\frac {1-\sqrt {3}+x}{1+\sqrt {3}+x}\right )|-7-4 \sqrt {3}\right )}{935 \sqrt {\frac {1+x}{\left (1+\sqrt {3}+x\right )^2}} \left (1+x^3\right )} \\ \end{align*}
Result contains complex when optimal does not.
Time = 21.56 (sec) , antiderivative size = 235, normalized size of antiderivative = 1.17 \[ \int x^3 (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \, dx=\frac {2 \left (x \sqrt {1+x} \left (27-27 x+27 x^2+100 x^3-100 x^4+100 x^5+55 x^6-55 x^7+55 x^8\right )-\frac {9 i \sqrt {6} (1+x) \sqrt {\frac {3 i+\sqrt {3}+\left (-3 i+\sqrt {3}\right ) x}{\left (-3 i+\sqrt {3}\right ) (1+x)}} \sqrt {\frac {-3 i+\sqrt {3}+\left (3 i+\sqrt {3}\right ) x}{\left (3 i+\sqrt {3}\right ) (1+x)}} \operatorname {EllipticF}\left (i \text {arcsinh}\left (\frac {\sqrt {-\frac {6 i}{3 i+\sqrt {3}}}}{\sqrt {1+x}}\right ),\frac {3 i+\sqrt {3}}{3 i-\sqrt {3}}\right )}{\sqrt {-\frac {i}{3 i+\sqrt {3}}}}\right )}{935 \sqrt {1-x+x^2}} \]
[In]
[Out]
Time = 0.71 (sec) , antiderivative size = 176, normalized size of antiderivative = 0.88
method | result | size |
risch | \(\frac {2 x \left (55 x^{6}+100 x^{3}+27\right ) \sqrt {1+x}\, \sqrt {x^{2}-x +1}}{935}-\frac {108 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, F\left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right ) \sqrt {\left (1+x \right ) \left (x^{2}-x +1\right )}}{935 \sqrt {x^{3}+1}\, \sqrt {1+x}\, \sqrt {x^{2}-x +1}}\) | \(176\) |
elliptic | \(\frac {\sqrt {1+x}\, \sqrt {x^{2}-x +1}\, \sqrt {\left (1+x \right ) \left (x^{2}-x +1\right )}\, \left (\frac {2 x^{7} \sqrt {x^{3}+1}}{17}+\frac {40 x^{4} \sqrt {x^{3}+1}}{187}+\frac {54 x \sqrt {x^{3}+1}}{935}-\frac {108 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, F\left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{935 \sqrt {x^{3}+1}}\right )}{x^{3}+1}\) | \(188\) |
default | \(\frac {2 \sqrt {1+x}\, \sqrt {x^{2}-x +1}\, \left (55 x^{10}+155 x^{7}+27 i \sqrt {3}\, \sqrt {-\frac {2 \left (1+x \right )}{-3+i \sqrt {3}}}\, \sqrt {\frac {i \sqrt {3}-2 x +1}{i \sqrt {3}+3}}\, \sqrt {\frac {i \sqrt {3}+2 x -1}{-3+i \sqrt {3}}}\, F\left (\sqrt {-\frac {2 \left (1+x \right )}{-3+i \sqrt {3}}}, \sqrt {-\frac {-3+i \sqrt {3}}{i \sqrt {3}+3}}\right )-81 \sqrt {-\frac {2 \left (1+x \right )}{-3+i \sqrt {3}}}\, \sqrt {\frac {i \sqrt {3}-2 x +1}{i \sqrt {3}+3}}\, \sqrt {\frac {i \sqrt {3}+2 x -1}{-3+i \sqrt {3}}}\, F\left (\sqrt {-\frac {2 \left (1+x \right )}{-3+i \sqrt {3}}}, \sqrt {-\frac {-3+i \sqrt {3}}{i \sqrt {3}+3}}\right )+127 x^{4}+27 x \right )}{935 \left (x^{3}+1\right )}\) | \(262\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.08 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.19 \[ \int x^3 (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \, dx=\frac {2}{935} \, {\left (55 \, x^{7} + 100 \, x^{4} + 27 \, x\right )} \sqrt {x^{2} - x + 1} \sqrt {x + 1} - \frac {108}{935} \, {\rm weierstrassPInverse}\left (0, -4, x\right ) \]
[In]
[Out]
\[ \int x^3 (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \, dx=\int x^{3} \left (x + 1\right )^{\frac {3}{2}} \left (x^{2} - x + 1\right )^{\frac {3}{2}}\, dx \]
[In]
[Out]
\[ \int x^3 (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \, dx=\int { {\left (x^{2} - x + 1\right )}^{\frac {3}{2}} {\left (x + 1\right )}^{\frac {3}{2}} x^{3} \,d x } \]
[In]
[Out]
\[ \int x^3 (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \, dx=\int { {\left (x^{2} - x + 1\right )}^{\frac {3}{2}} {\left (x + 1\right )}^{\frac {3}{2}} x^{3} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^3 (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \, dx=\int x^3\,{\left (x+1\right )}^{3/2}\,{\left (x^2-x+1\right )}^{3/2} \,d x \]
[In]
[Out]